<?php

require_once 'init.php';
require_once 'components/tours.php';

$id = $par->asInt('id');

$rout = query2array("
	SELECT routs.name, routs.descr, routs.image1
	FROM routs 
	WHERE routs.id=$id
");

$smarty->assign('rout', $rout);
$smarty->assign('tours', getTours(array('rout'=>$id)));


$routsPage = new Page('routs');

$smarty->assign(
	'page', 
	new SitePage(
		false, 
		false, 
		$rout['name'], 
		$rout['name'], 
		false, 
		$routsPage->name().' - '.$rout['name'], 
		$routsPage->name().' - '.$rout['name'], 
		$routsPage->name().' - '.$rout['name']
	)
);

show(
	'rout', 
	$rout['name'], 
	array(getString('Routes')=>'routs.php',)
);

?>